package com.horay.springclouddemo.provider.hystrix.service;

import com.horay.springclouddemo.model.hystrix.Hystrix;
import com.horay.springclouddemo.model.hystrix.HystrixDTO;

import java.util.List;

/**
 * 豪猪业务服务接口
 *
 * @author heyingcheng
 * @date 2020/3/21 14:13
 */
public interface HystrixService {

    /**
     * 新增豪猪
     *
     * @param hystrix
     * @author heyingcheng
     * @date 2020/3/21 14:17
     * @return boolean
     */
    boolean createHystrix(Hystrix hystrix);

    /**
     * 获取豪猪
     *
     * @param id
     * @author heyingcheng
     * @date 2020/3/21 14:17
     * @return com.horay.springclouddemo.provider.hystrix.model.Hystrix
     */
    Hystrix getHystrix(Integer id);

    /**
     * 获取豪猪集合
     *
     * @param hystrixDTO
     * @author heyingcheng
     * @date 2020/3/21 14:18
     * @return java.util.List<com.horay.springclouddemo.provider.hystrix.model.Hystrix>
     */
    List<Hystrix> getHystrixs(HystrixDTO hystrixDTO);

    /**
     * 更新豪猪
     *
     * @param hystrix
     * @author heyingcheng
     * @date 2020/3/21 14:18
     * @return boolean
     */
    boolean updateHystrix(Hystrix hystrix);

    /**
     * 删除豪猪
     *
     * @param id
     * @author heyingcheng
     * @date 2020/3/21 14:19
     * @return boolean
     */
    boolean deleteHystrix(Integer id);

}
